import {POST,GET} from "@/api/api";


/**
 * 登录
 * @param {*} param 
 */
 export function login(param) {
    return POST('api/fabu/login', param)
}


/**
 * 通用新增
 * @param {*} param 
 */
 export function addTask(param) {
    return POST('api/fabu/upgradeTask/addTask', param)
}

/**
 * 通用升级区域列表
 * @param {*} param 
 */
 export function areaList (param){
    return POST('api/fabu/upgradeTask/areaList', param)
}
/**
 * 通用升级编码
 * @param {*} param 
 */
 export function createUpgradeCode (param){
    return POST('api/fabu/upgradeTask/createUpgradeCode', param)
}

/**
 * 升级列表
 * @param {*} param 
 */
 export function upgradeList (param){
    return POST('api/fabu/upgradeTask/upgradeList', param)
}

/**
 * 编辑回显
 * @param {*} param 
 */
 export function getUpgradeDetails (param){
    return POST('api/fabu/upgradeTask/getUpgradeDetails', param)
}
/**
 * 编辑
 * @param {*} param 
 */
 export function editUpgrade (param){
    return POST('api/fabu/upgradeTask/editUpgrade', param)
}
/**
 * 查看升级列表
 * @param {*} param 
 */
 export function upgradeRecordList (param){
    return POST('api/upgradeTaskRecord/upgradeRecordList', param)
}

/**
 * 升级功能
 * @param {*} param 
 */
 export function upgradePro (param){
    return POST('api/fabu/upgradeTask/upgradePro', param)
}

/**
 * 发布功能
 * @param {*} param 
 */
 export function editUpgradeStatus (param){
    return POST('api/fabu/upgradeTask/editUpgradeStatus', param)
}


/**
 * 获取下载列表
 * @param {*} param 
 */
 export function getPackageList (param){
    return POST('api/fabu/upgradeTask/getPackageList', param)
}






